package net.vkits.anjiamiao.domain.repository;

import net.vkits.anjiamiao.domain.model.Device;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;
import java.util.Set;

/**
 * Created by ethan-liu on 2016/11/23.
 */
public interface DeviceRepository extends PagingAndSortingRepository<Device, Long> {
        Set<Device> findByCellphone(String cellphone);
        Optional<Device> findByUmDeviceToken(String umDeviceToken);
}
